package com.lottery.material.dao.article;

import com.lottery.material.pojo.article.ArticlePictureInfo;

import java.util.List;

/**
 * @description 文章图片地址信息Mapper
 * @author rambo
 * @date 2019年4月11日 下午9:22:18
 */
@SuppressWarnings("JavaDoc")
public interface ArticlePictureInfoMapper {
	
    Integer deleteByPrimaryKey(Integer id);

    Integer insert(ArticlePictureInfo record);

    Integer insertSelective(ArticlePictureInfo record);

    ArticlePictureInfo selectByPrimaryKey(Integer id);

    Integer updateByPrimaryKeySelective(ArticlePictureInfo record);

    Integer updateByPrimaryKey(ArticlePictureInfo record);

    /**
     * @description 批量插入文章图片内容
     * @param articlePictureList
     * @author houjie
     * @return
     */
    Integer insertList(List<ArticlePictureInfo>  articlePictureList);

    /**
     * description: 根据文章id查询文章配图
     * author sunny
     * createDate 2019-04-24 下午 7:29
     * @param articleId
     * @return
     */
    List<ArticlePictureInfo> findByArticleId(String articleId);
    
}
